import request from '@/utils/request'

// 查询供应商联系人列表
export function listContactsupplier(query) {
  return request({
    url: '/crm/contactsupplier/list',
    method: 'get',
    params: query
  })
}

// 查询供应商联系人详细
export function getContactsupplier(id) {
  return request({
    url: '/crm/contactsupplier/' + id,
    method: 'get'
  })
}

// 新增供应商联系人
export function addContactsupplier(data) {
  return request({
    url: '/crm/contactsupplier',
    method: 'post',
    data: data
  })
}

// 修改供应商联系人
export function updateContactsupplier(data) {
  return request({
    url: '/crm/contactsupplier',
    method: 'put',
    data: data
  })
}

// 删除供应商联系人
export function delContactsupplier(id) {
  return request({
    url: '/crm/contactsupplier/' + id,
    method: 'delete'
  })
}
